package com.sara.controller.exceptionhandler;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

import java.io.IOException;

@ControllerAdvice
public class ControllerExceptionHandler {
    
    @ExceptionHandler(IOException.class)
    public String notFoundexception() {
        return "error/500";
    }
    
}
